package io.xccit.train.member;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @author CH_ywx
 * @version 1.0
 * @create 2024/11/3
 * <p>会员模块启动类</p>
 */
@SpringBootApplication
@ComponentScan(basePackages = "io.xccit.train")
@MapperScan(basePackages = "io.xccit.train.member.mapper")
public class MemberApplication {

    private static final Logger LOGGER = LoggerFactory.getLogger(MemberApplication.class);
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(MemberApplication.class);
        ConfigurableEnvironment environment = application.run(args).getEnvironment();
        LOGGER.info("会员模块启动成功\t地址:127.0.0.1:{}{}",environment.getProperty("server.port"),environment.getProperty("server.servlet.context-path"));
    }
}
